package cn.wolfcode.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class QueryObject {
    private int currentPage = 1;
    private int pageSize    = 3;

    public int getStart() {
        return (currentPage - 1) * pageSize;
    }
}


